<template>
  <div id="userManager">
    <el-table :data="tableData" style="width: 100%">
      <el-table-column prop="userName" label="用户名" width="180"></el-table-column>
      <el-table-column prop="email" label="邮箱" width="180"></el-table-column>
      <el-table-column prop="fullName" label="全名"></el-table-column>
    </el-table>
  </div>
</template>

<script>
import axios from "axios";
export default {
  data() {
    return {
      tableData: []
    };
  },
  methods: {},
  mounted() {
    var _this = this; //很重要！！
    console.log(axios);
    axios
      .post("/framework/services/util/data/execute/QUERY_USER", {})
      .then(res => {
        console.log(res);
        _this.tableData = res.data.datas;
      })
      .catch(function(error) {
        // 请求失败处理
        console.log(error);
      });
  }
};
</script>
